﻿<%@ Page Title="Jobs" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="Jobs.aspx.vb" Inherits="Jobs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpMainContent" Runat="Server">
    <asp:Panel ID="Panel1" runat="server" HorizontalAlign="Center">
                    <h2>
                        POST A JOB, FIND A JOB
                    </h2>
                    <p class="leadingStatement">
                On this page, you will find job posts and you can also post jobs for members! </p>
                    <p>
    <br />                  <asp:GridView ID="GridView1" runat="server" AllowSorting="True" 
                            AutoGenerateColumns="False" HorizontalAlign="Center" CssClass="gridview" 
                            DataKeyNames="ID" >
                            <Columns>
                                <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" 
                                    ReadOnly="True" SortExpression="ID" />
                                <asp:BoundField DataField="JobTitle" HeaderText="JobTitle" 
                                    SortExpression="JobTitle" />
                                <asp:BoundField DataField="Description" HeaderText="Description" 
                                    SortExpression="Description" />
                                <asp:BoundField DataField="Qualifications" HeaderText="Qualifications" 
                                    SortExpression="Qualifications" />
                                <asp:BoundField DataField="StartDate" HeaderText="StartDate" 
                                    SortExpression="StartDate" />
                                <asp:BoundField DataField="Location" HeaderText="Location" 
                                    SortExpression="Location" />
                                <asp:BoundField DataField="Employer" HeaderText="Employer" 
                                    SortExpression="Employer" />
                                <asp:BoundField DataField="Details" HeaderText="Details" 
                                    SortExpression="Details" />
                                <asp:BoundField DataField="Contact" HeaderText="Contact" 
                                    SortExpression="Contact" />
                                <asp:BoundField DataField="PostedBy" HeaderText="PostedBy" 
                                    SortExpression="PostedBy" />
                            </Columns>
                        </asp:GridView>
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:SingleMomMemberConnectionString %>" 
                            ProviderName="<%$ ConnectionStrings:SingleMomMemberConnectionString.ProviderName %>" 
                            
                            SelectCommand="SELECT [ID], [JobTitle], [Description], [Qualifications], [StartDate], [Location], [Employer], [Details], [Contact], [PostedBy] FROM [Jobs] WHERE ([ID] = ?)">
                            <SelectParameters>
                                <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
                            </SelectParameters>
                        </asp:SqlDataSource>
    </p>
    <br />
    <br /> <p class="leadingStatement">
                Us this form below to post a new job! </p>
    <p>
    <br />      &nbsp;      Title of Job: <asp:TextBox ID="tb_JobTitle" runat="server" Width="270px"></asp:TextBox>
    <br />
    <br />
    <br />                  Job Description: <asp:TextBox ID="tb_Description" runat="server"></asp:TextBox>
    <br />
    <br />
    <br />      &nbsp;      Qualifications: <asp:TextBox ID="tb_Qualifications" runat="server"></asp:TextBox>
    <br />
    <br />
    <br />
    <br />      &nbsp;      Start Date (e.g Tuesday, June 19, 2013): <asp:TextBox ID="tb_StartDate" 
                runat="server" Width="219px"></asp:TextBox>
    <br />
    <br />
    <br />      &nbsp;      Location: <asp:TextBox ID="tb_Location" runat="server"></asp:TextBox>
    <br />
    <br />
    <br />      &nbsp;      Employer: <asp:TextBox ID="tb_Employer" runat="server" Width="446px"></asp:TextBox>
    <br />
    <br />
    <br />      &nbsp;      Further Details: <br /> &nbsp; <asp:TextBox ID="tb_Details" runat="server" Height="88px" 
                TextMode="MultiLine" Width="292px"></asp:TextBox>
    <br />
    <br />
    <br />      &nbsp;      Contact: <asp:TextBox ID="tb_Contact" runat="server" Width="297px"></asp:TextBox>
    <br />
    <br />
    <br />
    <br /> &nbsp; <asp:Button ID="Button1" runat="server" Text="Post New Job" />
    </p>
    </asp:Panel>
</asp:Content>
    


